package mmc.action.skill;


import mmc.EngineObject;
import mmc.action.TargetException;
import mmc.server.RemoteClient;

public class SteadyShot extends Skill {
	
	public SteadyShot(){
		super("Steady Shot", "mmc/resource/data/Steady.png",0);
		this.casttime = 1.2f;
		this.friendly = false;
		this.energy = -10;
	}
	
	@Override
	public void endCast(RemoteClient client){
		EngineObject tar;
		try {
			tar = resolveTarget(client, targetId);
			int dmg = Skill.randomDMG(2, 10);
			
			tar.takeDamage(dmg);
		} catch (TargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}			
	}
}
